package gproblem;

/**
 * Given data for each job
 * 
 * @author Olivier Grunder
 * @version 0.01
 * @date 13 avril 2011
 *
 */
public class GJobData {
	private double size ;
	private double dueDate ;
	private double holdingCost ;
	
	public GJobData() { 	}
	
	/**
	 * @param size
	 * @param dueDate
	 * @param holdingCost
	 */
	public GJobData(double size, double dueDate, double holdingCost) {
		this.size = size;
		this.dueDate = dueDate;
		this.holdingCost = holdingCost;
	}

	public GJobData(GJobData gJobData) {
		size = gJobData.size ;
		dueDate = gJobData.dueDate ;
		holdingCost = gJobData.holdingCost ;
	}

	/**
	 * @return the size
	 */
	public double getSize() {
		return size;
	}

	/**
	 * @param size the size to set
	 */
	public void setSize(double size) {
		this.size = size;
	}

	/**
	 * @return the dueDate
	 */
	public double getDueDate() {
		return dueDate;
	}

	/**
	 * @param dueDate the dueDate to set
	 */
	public void setDueDate(double dueDate) {
		this.dueDate = dueDate;
	}

	/**
	 * @return the holdingCost
	 */
	public double getHoldingCost() {
		return holdingCost;
	}

	/**
	 * @param holdingCost the holdingCost to set
	 */
	public void setHoldingCost(double holdingCost) {
		this.holdingCost = holdingCost;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "GJobData [dueDate=" + dueDate + ", holdingCost=" + holdingCost
				+ ", size=" + size + "]";
	}

	
}
